package com.logwire.dto.query;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import com.baomidou.mybatisplus.core.metadata.OrderItem;import io.swagger.v3.oas.annotations.media.Schema;import lombok.Data;/** * @author yhou * @ProjectName yhou-api * @description * @date 2022/11/08 4:56 PM */@Datapublic class BaseQuery {	@Schema(hidden = true)	long pageNum = 1;	@Schema(hidden = true)	long pageSize = 10;	@Schema(hidden = true)	String keyword;	@Schema(hidden = true)	String selectType;	@Schema(hidden = true)	String orderColumn = "id";	@Schema(hidden = true)	boolean asc = false;	@Schema(hidden = true)	public QueryWrapper getWhere() {		return null;	}	@Schema(hidden = true)	public OrderItem getOrders() {		// TODO  限制非法字段不能排序		return isAsc() ? OrderItem.asc(getOrderColumn()) : OrderItem.desc(getOrderColumn());	}}